<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=UTF-8" language="java"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<fmt:setBundle basename="bundles.railroadIndexBundle" />

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><fmt:message key="index.title.site"></fmt:message></title>
</head>
<body>

<c:set var="body" value="${sessionScope['body'] }"></c:set>
<c:set var="cantLogin" value="${sessionScope['cantLogin'] }"></c:set>

<table id="conteiner" width="50%" align="center">
	<tr>
		<td align="left"><a href="/index.do"><fmt:message key="index.title.site"></fmt:message></a></td>
		<td align="right"><jsp:include page="pages/user_cabinet.jsp"></jsp:include></td>
	</tr>

	<tr>
		<td>
		<table width="100%">

			<tr>
				<td width="20%"><jsp:include page="pages/menu.jsp"></jsp:include></td>

				<td width="80%"><c:if test="${not empty cantLogin }">
					<h3><fmt:message key="index.cantLogin"></fmt:message></h3>
				</c:if> <c:if test="${ not empty body }">
					<jsp:include page="${body}"></jsp:include>
				</c:if> <c:if test="${ empty body }">
					<fmt:message key="index.welcome"></fmt:message>
				</c:if></td>
			</tr>

		</table>
		</td>
	</tr>
</table>

</body>
</html>